package org.alis.rpc.common.util;

import lombok.experimental.UtilityClass;
import org.apache.commons.codec.digest.Md5Crypt;

import java.nio.charset.StandardCharsets;
import java.util.UUID;

/**
 * AlisIdUtils desc: id  工具类
 *
 * @author luochuan
 * @date 2020/9/30
 */
@UtilityClass
public class AlisIdUtils {

    /**
     *
     * @return md5 hashUuid
     */
    public String getUuid(){
       return  Md5Crypt.md5Crypt(UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8));
    }


}
